﻿using System.Net;
using System.Net.Sockets;

namespace ClassLibrary_fqy_NET.SocketHelper
{
    public class UserTokenAsync
    {
        /// <summary>
        /// 通信SOKET
        /// </summary>
        public Socket? mySocket { get; internal set; }
        /// <summary>
        /// 连接时间
        /// </summary>
        public DateTime ConnectTime { get; internal set; }
        /// <summary>
        /// 远程地址
        /// </summary>
        public EndPoint? Remote { get; internal set; }
        /// <summary>
        /// 客户端IP地址
        /// </summary>
        public IPAddress? IP_Client { get; internal set; }
        /// <summary>
        /// 数据缓存区
        /// </summary>
        public List<byte>? Buffer { get; internal set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public UserTokenAsync()
        {
            Buffer = new List<byte>();
        }
    }
}
